package com.itheima.fanxing;

import java.util.ArrayList;

public class Box2<T> {

    private T t;
    private ArrayList<T>  list;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }
    public void add(T t){
        list.add(t);
    }
}
